<div class="top-nav d-print-none {neq name=":request()->controller().'-'.request()->action()" value="Index-index"}{neq name=":request()->controller()" value="Login"}top-nav-blue{/neq}{/neq}">
	<div class="flex px-3 flex-center [container]">
		<div>
			<div class="flex flex-center">
				{eq name=":config('xy_sub_website.status')" value="1"}
				<div class="pr-3 text-primary">
					<i class="el-icon-location mr-1"></i>{notempty name="sub_title"}{$sub_title}{else/}全国站{/notempty}
					<a href="{xycms:web name='url'}/subsite" class="el-link el-link--primary text-white">
						[切换分站]
					</a>
				</div>
				{/eq}
				<ul class="nav flex-1">
					<li class="nav-item">
		    			<a class="nav-link {eq name=":request()->controller().'-'.request()->action()" value="Index-index"}active{/eq}" href="/">首页</a>
					</li>
					{xycms:menu name="pc_header"}
					{volist name="menu_pc_header.data" id="v"}
					<li class="nav-item">
						{empty name="v.url"}
						<a class="nav-link {$v.cla} {eq name=":config('web.url').request()->url()" value="$v.url"}active{/eq}">
						{else/}
						<a href="{$v.url}" class="nav-link {eq name=":config('web.url').request()->url()" value="$v.url"}active{/eq} {$v.cla}" target="{$v.target}">
						{/empty}
							{$v.title}
						</a>
					</li>
					{/volist}
					{/xycms:menu}
				</ul>
				<el-dropdown trigger="hover" class="py-3">
				    <div class="el-dropdown-link px-2 el-link flex flex-center">
				      	<div class="flex-1 text-truncate" style="max-width: 160px;">
				      		更多
				      	</div>
				      	<i class="el-icon-arrow-down ml-1"></i>
				    </div>
			      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
			        <el-dropdown-item>
						<a href="{xycms:web name="url"/}/special" class="d-block el-link el-link--info" target="_blank">
							专题招聘
						</a>
			        </el-dropdown-item>
			        <el-dropdown-item>
						<a href="/down/InternetShortcut?url={:request()->url()}{notempty name='webtitle'}&title={$webtitle}{/notempty}" class="d-block el-link el-link--info">
							保存到桌面
						</a>
			        </el-dropdown-item>
			        <el-dropdown-item>
						<a href="{xycms:web name='url'}/map" class="d-block el-link el-link--info" target="_blank">
							地图找工作
						</a>
			        </el-dropdown-item>
			        <el-dropdown-item>
						<a href="/common-problem" class="d-block el-link el-link--info" target="_blank">
							帮助中心
						</a>
			        </el-dropdown-item>
			        <el-dropdown-item>
						<a href="{xycms:web name='downUrl'/}" class="d-block el-link el-link--info" target="_blank">
							APP下载
						</a>
			        </el-dropdown-item>
			      </el-dropdown-menu>
			    </el-dropdown>
			</div>
		</div>
		<div class="flex-1"></div>
		<div v-if="!userInfo.id">
			<a href="{xycms:web name='url'}/login" target="_self" class="el-link el-link--primary px-2">用户登录</a>
			<a href="{xycms:web name='url'}/register" target="_self" class="el-link el-link--primary px-2">免费注册</a>
		</div>
		<div v-else-if="userInfo.id  && userInfo.role_type===0">
			<el-dropdown trigger="hover" class="py-3">
		      <div class="el-dropdown-link mr-2 el-link flex flex-center"
		      v-if="userInfo.resume_name">
		      	<div class="flex-1 text-truncate" style="max-width: 120px;">
		      		{{userInfo.resume_name}}
		      	</div>
		        <i class="el-icon-arrow-down el-icon--right"></i>
		      </div>
		      <div class="el-dropdown-link mr-2 el-link flex flex-center"
		      v-else>
		      	<div class="flex-1 text-truncate" style="max-width: 120px;">
		      		{{userInfo.nickname}}
		      	</div>
		        <i class="el-icon-arrow-down el-icon--right"></i>
		      </div>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open('/user/jobs/management');">我的投递</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open('/user/account');">账号设置</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="goToCompany">去企业版</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" @click="outLogin">退出登录</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
			<el-dropdown trigger="hover" class="py-3">
		      <span class="el-dropdown-link mr-2 el-link">
		        简历<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open('/user');">我的简历</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open(userInfo.resume_id?'/resume/'+userInfo.resume_id+'.html':'/user');">预览简历</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="refreshResume">刷新简历</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
		    <el-link href="/user/myMessage" :underline="false">消息({{view.message_count}})</el-link>
		</div>
		<div v-else="userInfo.id  && userInfo.role_type===1">
			<el-dropdown trigger="hover" class="py-3">
		      <div class="el-dropdown-link mr-2 el-link flex flex-center"
		      v-if="userInfo.company_name">
		      	<div class="flex-1 text-truncate" style="max-width: 120px;">
		      		{{userInfo.company_name}}
		      	</div>
		        <i class="el-icon-arrow-down el-icon--right"></i>
		      </div>
		      <div class="el-dropdown-link mr-2 el-link flex flex-center"
		      v-else>
		      	<div class="flex-1 text-truncate" style="max-width: 120px;">
		      		{{userInfo.nickname}}
		      	</div>
		        <i class="el-icon-arrow-down el-icon--right"></i>
		      </div>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open('/user');">我的招聘</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open('/user/account');">账号设置</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="goToPersonal">去个人版</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" @click="outLogin">退出登录</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
			<el-dropdown trigger="hover" class="py-3">
		      <span class="el-dropdown-link mr-2 el-link">
		        职位<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open('/user/jobs/release');">发布职位</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block el-link el-link--info" 
		        	@click="window.open('/user/jobs/management');">我的发布</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
		    <el-link href="/user/myMessage" :underline="false">消息({{view.message_count}})</el-link>
		</div>
	</div>
</div>